package com.lyy.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/** @author JoeZhou */
@Data
//调用父类
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Chapter extends BaseEntity {
    private Integer chapterId;
    private String chapterTitle;
    private String chapterInfo;
    private Integer chapterIndex;
    private Integer fkVideoId;
    /** 每一章拥有多个集，1:N */
    private List<Episode> episodes;
    /** 每一章所属一个视频，1:1 */
    private Video video;
}